[INCOMPATIBLE CHANGE] Implement new deployment model
authorColin Walters <walters@verbum.org>
Sat, 29 Jun 2013 15:45:53 +0000 (11:45 -0400)
committerColin Walters <walters@verbum.org>
Sun, 7 Jul 2013 15:31:26 +0000 (11:31 -0400)
commitbb6eedfb258d3001f61c42c7e920c03dae2bdc1a
treebfce00f47de8191e5ef7709f3112f1757f9d8306
parentecb3f0de035c09d8b280ac116eeede483638fd5d
[INCOMPATIBLE CHANGE] Implement new deployment model

See https://wiki.gnome.org/OSTree/DeploymentModel2

This is a major rework of the on-disk filesystem layout, and the boot
process.  OSTree now explicitly supports upgrading kernels, and these
upgrades are also atomic.

The core concept of the new model is the "deployment list", which is
an ordered list of bootable operating system trees.  The deployment
list is reflected in the bootloader configuration; which has a kernel
argument that tells the initramfs (dracut) which operating system root
to use.

Invidiual notable changes that come along with this:

1) Operating systems should now come with their etc in usr/etc; OSTree
   will perform a 3-way merge at deployment time, and place etc in
   the actual root.  This avoids the need for a bind mount, and is
   just a lot cleaner.
2) OSTree no longer bind mounts /root, /home, and /tmp.  It is expected
   that the the OS/ has these as symbolic links into /var.

At the moment, OSTree only supports managing syslinux; other
bootloader backends will follow.
33 files changed:
Makefile-ostree.am
Makefile-switchroot.am
Makefile-tests.am
src/ostree/ot-admin-builtin-deploy.c
src/ostree/ot-admin-builtin-diff.c
src/ostree/ot-admin-builtin-init-fs.c
src/ostree/ot-admin-builtin-install.c
src/ostree/ot-admin-builtin-os-init.c
src/ostree/ot-admin-builtin-prune.c
src/ostree/ot-admin-builtin-pull-deploy.c [deleted file]
src/ostree/ot-admin-builtin-status.c [new file with mode: 0644]
src/ostree/ot-admin-builtin-update-kernel.c [deleted file]
src/ostree/ot-admin-builtin-upgrade.c
src/ostree/ot-admin-builtins.h
src/ostree/ot-admin-deploy.c [new file with mode: 0644]
src/ostree/ot-admin-deploy.h [new file with mode: 0644]
src/ostree/ot-admin-functions.c
src/ostree/ot-admin-functions.h
src/ostree/ot-bootloader-syslinux.c [new file with mode: 0644]
src/ostree/ot-bootloader-syslinux.h [new file with mode: 0644]
src/ostree/ot-bootloader.c [new file with mode: 0644]
src/ostree/ot-bootloader.h [new file with mode: 0644]
src/ostree/ot-builtin-admin.c
src/ostree/ot-config-parser.c [new file with mode: 0644]
src/ostree/ot-config-parser.h [new file with mode: 0644]
src/ostree/ot-deployment.c [new file with mode: 0644]
src/ostree/ot-deployment.h [new file with mode: 0644]
src/ostree/ot-ordered-hash.c [new file with mode: 0644]
src/ostree/ot-ordered-hash.h [new file with mode: 0644]
src/switchroot/ostree-prepare-root.c
src/switchroot/ostree-switch-root.c [deleted file]
tests/libtest.sh
tests/t0015-admin-deploy.sh [new file with mode: 0755]